package com.vcredit.creditcat.persistence.base;

import com.vcredit.creditcat.model.MerchantProduct;
import com.vcredit.framework.pagination.DefaultCriteria;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface MerchantProductMapper {
	void insert(MerchantProduct obj);

	void update(MerchantProduct obj);

	List<MerchantProduct> findAll();

	List<MerchantProduct> find(MerchantProduct obj);

	MerchantProduct findById(Long id);

	List<MerchantProduct> findByPage(DefaultCriteria criteria);

	List<MerchantProduct> findByIds(Long[] productIds);
	
	List<MerchantProduct> findBySucCodeAndTechnical(@Param("successCode") int successCode,@Param("isTechnical")boolean isTechnical);

	List<MerchantProduct> findFastProductsByVersion(@Param("appDesc") String appDesc,@Param("mobile") String mobile);

	List<MerchantProduct> findHotProducts(@Param("appDesc") String appDesc,@Param("start") Integer start,@Param("limit") Integer limit);
}
